'use strict';

module.exports = app => {
  const { router, controller, jwt } = app;
  router.post('/api/admin/login', controller.admin.main.Login);
  router.post('/api/admin/getUserlist', jwt, controller.admin.main.getUserlist);
  router.post('/api/admin/AddUser', controller.admin.main.addUser);
  router.get('/api/admin/delUserById/:id', controller.admin.main.delUser);
  router.get('/api/admin/getArtCat', controller.admin.main.getArtCat);
};
